﻿using MapleLeaf.Model.CookBook.Organization.Entity;

namespace MapleLeaf.WebApi.CookBook.Controllers.Dto {
    /// <summary>
    /// 
    /// </summary>
    public class DictItemOption {
        /// <summary>
        /// 
        /// </summary>
        public DictItemOption() { }
        /// <summary>
        /// 
        /// </summary>
        public DictItemOption(DictItemEntity item) {
            Value = item.Value;
            Label = item.Label;
            TagType = item.TagType;
        }

        /// <summary>
        /// 字典数据值 
        /// </summary>
        public string? Value { set; get; }
        /// <summary>
        /// 字典数据标签 
        /// </summary>
        public string? Label { set; get; }
        /// <summary>
        /// 标签类型 
        /// </summary>
        public string? TagType { set; get; }

    }
}
